<{include file="common/header.tpl"}>
<script src="/resource/laydate/laydate.js" type="text/javascript"></script>
<style>
.fcontent { padding: 1em 2em; }
.fcontent .pagination { padding: 1em 10px; }
.hidden { display: none; }
table.gridtable {
    width: 90%;
    font-family: verdana,arial,sans-serif;
    font-size:12px;
    color:#333333;
    border-width: 1px;
    border-color: #666666;
    border-collapse: collapse;
}
table.gridtable th {
    border-width: 1px;
    padding: 8px;
    border-style: solid;
    border-color: #666666;
    background-color: #dedede;
}
table.gridtable td {
    border-width: 1px;
    padding: 8px;
    border-style: solid;
    border-color: #666666;
    background-color: #ffffff;
}

.noul { list-style: none; line-height: 2.5em; padding: 0;}
.noul li { line-height: 2em; }
.noul li.last { padding-top: 1em; }
.noul li label { display: inline-block; width: 100px; text-align: right; padding-right: 10px; }

.filter { margin: 10px 0; }
.filter .btn {background-image: none; padding: 2px 10px; font-weight: normal; height: auto; }
</style>

<div class="fcontent">
    <h3>用户收入明细</h3> 
    <table class="gridtable">
    <tr>
        <th>用户</th>
        <th>哇吖</th>
        <th>订单编号</th>
        <th>订单标题</th>
        <th>订单金额</th>
        <th>返利金额</th>
        <th>收益时间</th>
    </tr>
    <{foreach from=$records item=rs}>
    <tr>
        <td><{$rs.userName}></td>
        <td><{$rs.shopName}></td>
        <td><a href="/admin/order/detail/<{$rs.orderNo}>" target="_blank"><{$rs.orderNo}></a></td>
        <td width="200px"><{$rs.orderTitle}></td>
        <td>￥<{$rs.orderMoney/100|number_format:2}></td>
        <td>￥<{$rs.moneyIncome/100|number_format:2}></td>
        <td><{"m-d H:i"|date:$rs.created}></td>
    </tr>
    <{/foreach}>
    </table>

    <div><{$pagination}></div>
</div>

<{include file="common/footer.tpl"}>
